package com.monter.carlo.poker.util;

import java.util.HashMap;
import java.util.Map;

public class PokerUtil {
	private static final Map<Integer, String> templetsMap = new HashMap<Integer, String>();
	static {
		for (PokerCode pokerCode : PokerCode
				.values()) {
			templetsMap.put(pokerCode.getpCode(), pokerCode.getpType());
		}
	}

	public static String getPokerType(Integer pCode) {
		return templetsMap.get(pCode);
	}
}
